"""
最简单的FastAPI应用
"""
from fastapi import FastAPI

app = FastAPI(title="测试应用")

@app.get("/")
async def root():
    return {"message": "Hello World"}

if __name__ == "__main__":
    import uvicorn
    uvicorn.run(app, host="127.0.0.1", port=8000)
